package com.bookmall.entity;

import java.time.LocalDateTime;

public class Book {
	private int bookId;					//图书id
	private String bookName;			//书名
	private String info;				//简介
	private String author;				//作者
	private String publish;				//出版商
	private double price;				//价格
	private int saleCount;				//销量
	private LocalDateTime createTime;	//创建时间
	private LocalDateTime modifyTime;	//修改时间
	private boolean deleteFlag;			//删除标价
	private int typeId;					//图书类型id
	public Book() {
		super();
	}
	public Book(int bookId, String bookName, String info, String author, String publish, double price, int saleCount,
			LocalDateTime createTime, LocalDateTime modifyTime, boolean deleteFlag, int typeId) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.info = info;
		this.author = author;
		this.publish = publish;
		this.price = price;
		this.saleCount = saleCount;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.deleteFlag = deleteFlag;
		this.typeId = typeId;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPublish() {
		return publish;
	}
	public void setPublish(String publish) {
		this.publish = publish;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getSaleCount() {
		return saleCount;
	}
	public void setSaleCount(int saleCount) {
		this.saleCount = saleCount;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	public LocalDateTime getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", bookName=" + bookName + ", info=" + info + ", author=" + author
				+ ", publish=" + publish + ", price=" + price + ", saleCount=" + saleCount + ", createTime="
				+ createTime + ", modifyTime=" + modifyTime + ", deleteFlag=" + deleteFlag + ", typeId=" + typeId + "]";
	}
	
}
